﻿<div class="blade-static __bottom" ng-include="'$(Platform)/Scripts/common/templates/ok-cancel.tpl.html'"></div>
<div class="blade-content">
    <div class="blade-inner">
        <div class="inner-block">
            <div class="sub-t">Select permissions to assign</div>
            <div class="list __items" ng-init="openItems={}">
                <div class="list-group" ng-class="{'__opened': openItems[$index]}" ng-click="openItems[$index]=!openItems[$index]" ng-repeat-start="(key,values) in blade.currentEntities">{{key}}</div>
                <div class="list __sub" ng-repeat-end>
                    <label class="list-item" ng-repeat="data in values | orderBy:'id'">
                        <input type="checkbox" ng-model="data.$selected">
                        <span class="switch"></span>
                        <span class="list-name">{{data.id}}</span>
                        <span class="list-descr">{{data.name}}</span>
                    </label>
                </div>
            </div>
        </div>
    </div>
</div>